﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain
{
    //角色表
   public class Role:Entity
    {
      

        public string Code { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateUserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 创建用户实体
        /// </summary>
       [NotMapped]
        public virtual User CreateUser { get; set; }
        /// <summary>
        /// 用户集合
        /// </summary>
       // public virtual List<User> Users { get; set; }

      //  public virtual ICollection<Menu> Menus { get; set; }
    }
}
